package gxnu.edu.cn.mapper;

import gxnu.edu.cn.entity.Cuser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CuserMapper {

    /**
     * 根据用户名查询用户
     * @param userName
     * @return
     */
    @Select("select * from cuser where userName = #{userrName}")
    public Cuser getByusername(String userName);

    @Select("select * from cuser where userID = #{userID} AND passWord =#{passWord}")
    Cuser getByUserIdAndPassWord(Integer userID, String passWord);
}
